<template>
    <el-config-provider :locale="zhCn">
        <div class="view">
            <router-link v-for="item in toutesList" :key="item.path" :to="item.name"
                >{{ item.meta.title }}&nbsp;&nbsp;</router-link
            >
            <router-view />
        </div>
        <MineMap></MineMap>
    </el-config-provider>
</template>
<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn';
const router = useRouter();
const {
    options: { routes }
} = router;
const toutesList = routes.filter((item: { path: string }) => !['/', '*'].includes(item.path));
</script>
<style lang="scss" scoped>
.view {
    width: 100%;
    position: absolute;
    z-index: 1;
    // pointer-events: none;
}
</style>
